import service from '@/utils/request'
/**
 * 商户、第三方
 */
const OrganApi = {
  addOrganAuth: function(data) {
    return service.post('organ/auth', data)
  },
  editOrganAuth(data) {
    return service.put('organ/auth', data)
  },
  deleteOrganAuth(data) {
    return service.delete('organ/auth', {params: data })
  },
  listOrganAuth(data) {
    return service.get('organ/listAuth', {params: data })
  },
  getOrganAuthInfo(data) {
    return service.get('organ/auth', {params: data })
  },
  addThirdAccount: function(data) {
    return service.post('thirdAccount', data)
  },
  editThirdAccount(data) {
    return service.put('thirdAccount', data)
  },
  deleteThirdAccount(data) {
    return service.delete('thirdAccount', {params: data })
  },
  listThirdAccount(data) {
    return service.get('thirdAccount/list', {params: data })
  },
  getThirdAccountInfo(data) {
    return service.get('thirdAccount', {params: data })
  },
  checkThirdAccountIsExist(data) {
    return service.get('thirdAccount/isExisted', {params: data })
  },


  addThirdAuth: function(data) {
    return service.post('third/auth', data)
  },
  editThirdAuth(data) {
    return service.put('third/auth', data)
  },
  deleteThirdAuth(data) {
    return service.delete('third/auth', {params: data })
  },
  listThirdAuth(data) {
    return service.get('third/listAuth', {params: data })
  },
  listThirdName(data) {
    return service.get('third/getThirdIdAndName', {params: data })
  },
  getThirdAuthInfo(data) {
    return service.get('third/auth', {params: data })
  },

}

export default OrganApi
